package com.myjoje.jpa;

import com.myjoje.bean.system.UserBean;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

public interface UserJpa extends JpaRepository<UserBean, String>, JpaSpecificationExecutor<UserBean> {

    UserBean findByUsername(String username);

    Long countByUsernameAndStatus(String username, String status);

    Long countByPhoneNumAndStatus(String phoneNum, String status);
}
